using System;
using System.Collections.Generic;
using System.Text;

namespace MspEmulator
{
    class updateF2Voltage : ISend, IUpdateDevice
    {
        private ushort fV2;

        public updateF2Voltage(ushort value)
        {
            fV2 = value;
        }

        #region ISend Members

        public void Send()
        {
            Serial.Send(Utility.buildPack(Utility.collectData((byte)Utility.functCode.focusVoltage2)));
        }

        #endregion

        #region IUpdateDevice Members

        public void updateDevice()
        {
            Device.fV2 = fV2;
        }

        #endregion
    }
}
